package com.wnm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wnm.pojo.Order;

public interface OrderDao {

	public void add(Order order);

	public int getNumsByUserId(int userid);

	public int getOrderByStatus(@Param("userid")int userid,@Param("status")String status);

	public List<Order> getOrdersByuserid(int userid);

	public List<Order> getOrdersByuseridAndCurrentpage(@Param("userid")int userid, @Param("index")int i);

	public Order getById(int orderid);

}
